<?php
namespace app\validate;

use think\Validate;

class ProjectsValidate extends Validate
{
	protected $rule = [
			'name'      =>  'require',
			'company_name'      => 'require',
			'address'      => 'require',
			'status'       =>  'require|number|in:1,2,3,4,5,6,7',
			// 'content'     => 'require|max:150'
	];
	
	protected $message  =   [
			'name.require' => '项目名称不能为空',
			'company_name.require' => '企业名称不能为空',
			'address.require' => '地址不能为空',
			 'status.require' => '项目状态不能为空',
			 'status.number' => '项目状态为整数',
			 'status.in' => '项目状态取值错误',
			// 'content.require'   => '评论内容不能为空',
			// 'content.max' => '评论内容在150个字之内'
	];
	
}